
package DomainLayer;

/**
 * In this class a Product type object can be created.
 * @author Zsombi
 */
public class Product
{
    private String id;
    private String name;
    private String description;
    private double price;
    private double discount;
    private int amount;

    /**
     * Empty constructor for Product class.
     */
    public Product()
    {    }

    /**
     * Constructor for Product class.
     * @param Id                Identification code of an item type. E.g.: "01A283X46G" .
     * @param Name              Name of a product type. E.g.: hammer .
     * @param Ammount           Needed amount of this item. E.g.: 55 .
     * @param Price             Price of this item for the whole amount and amount borrowed. E.g.: 553 .
     * @param Discount          Amount of discount on the amount of items. E.g.: 15.35 .
     * @param Description       A description about this item. E.g.: "Heavy tool used for smashing stuff." .
     */
    public Product(String Id, String Name, int Amount, double Price, double Discount, String Description)
    {
        id = Id;
        name = Name;
        amount = Amount;
        price = Price;
        discount = Discount;
        description = Description;
    }

    /**
     * Return the Identification code of the product.
     * @return
     */
    public String getId()
    {
        return id;
    }

    /**
     * Set the Identification code of the product.
     * @param Id
     */
    public void setId(String Id)
    {
        id = Id;
    }

    /**
     * Return the name of the product.
     * @return name
     */
    public String getName()
    {
        return name;
    }

    /**
     * Set the name of the product.
     * @param name
     */
    public void setName(String name)
    {
        this.name = name;
    }

    /**
     * Return the description of the product.
     * @return description
     */
    public String getDescription()
    {
        return description;
    }

    /**
     * Set the description of the product.
     * @param description
     */
    public void setDescription(String description)
    {
        this.description = description;
    }

    /**
     * Return the price of the product.
     * @return price
     */
    public double getPrice()
    {
        return price;
    }

    /**
     * Set the price of the product.
     * @param price
     */
    public void setPrice(double price)
    {
        this.price = price;
    }

    /**
     * Return the amount of discount  of the product.
     * @return discount
     */
    public double getDiscount()
    {
        return discount;
    }

    /**
     * Set the amount of discount of the product.
     * @param discount
     */
    public void setDiscount(double discount)
    {
        this.discount = discount;
    }

    /**
     * Return the amount of the product.
     * @return amount
     */
    public int getAmount()
    {
        return amount;
    }

    /**
     * Set the amount of the product.
     * @param amount
     */
    public void setAmount(int amount)
    {
        this.amount = amount;
    }
}
